package com.gitee.situation.controller;

import com.gitee.situation.response.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import lombok.AllArgsConstructor;

import java.util.Arrays;

import com.gitee.situation.entity.ForeignStatisticsData;
import com.gitee.situation.service.IForeignStatisticsDataService;

/**
 * ForeignStatisticsData 控制层
 *
 * @Author wq
 * @Date 2021-04-06
 **/
@RestController
@RequestMapping("/foreignStatisticsData")
@AllArgsConstructor
public class ForeignStatisticsDataController {

    private final IForeignStatisticsDataService foreignStatisticsDataService;

    /**
     * 国外列表
     *
     * @return
     */
    @GetMapping("/list")
    public R list() {
        return R.success(foreignStatisticsDataService.listForeignData());
    }

}